/*
 * @Description:String
 * @Author: rendc
 * @Date: 2021-09-02 09:17:52
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-02 09:52:37
 */
// var s = "hello";
// console.log(s.length);
// console.log(s.charAt(1));
// console.log(s.charCodeAt(1));
// console.log(s.indexOf("q"));
// console.log(s.lastIndexOf("q"));
// console.log(s.lastIndexOf("e"));
// console.log(s.indexOf("e", 2));
// var s2 = ",world";
// console.log(s.concat(s2));
// var s = "helloworld";
// console.log(s);
// console.log(s.slice(3, 7));//lowo [)
// console.log(s);
// console.log(s.substr(3, 7));//loworld
// var s = "helloworld";
// console.log(s);
// console.log(s.substring(3, 7));//lowo[)
var s = " hello world ";
// console.log(s.trim());
console.log(s.toUpperCase());
console.log(s);
var s = " HELLO WORLD "
console.log(s.toLowerCase());
console.log(s);
